<!doctype html>
<html lang="zh-CN">

<head>
    <title>适航指令</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.js"></script>
</head>

<body>
    <div class="flex-container">
        <nav class="nav top-nav">
            <div class="container">
                <div class="row">
                   #include("language.html")
                </div>
            </div>
        </nav>
        <header class="masthead mb-auto">
            <div class="inner logo">
                <div class="webtitle">
                    <div class="title-h3 masthead-brand">国产飞机运营伙伴当局信息系统</div>
                    <div class="title-h4">Platform among CAAC MOU Partners for China-Made Aircraft</div>
                </div>
                #include("mainnav.html")
                <div class="search-form">
                    #include("searchhead.html")
                </div>
            </div>
            #include("menu.html")
        </header>
        
        #if(C.get("model"))
            #set(cmodel = C.get("model"))
          #else
            #articleMetaList(id=2)
                #for(s:values)
                    #set(cmodel = s)
                    #break
                #end
              #end
          #end
        
        <div class="container">
            <div class="page-title">适航指令</div>
            <div class="row">
                <div class="col-md-3 col-sm-12 left-bar">
                     #articleMetaList(id=2)
                    <ul class="list-group list-group-flush">
                        #for(s:values)
                        <li class="list-group-item">
                            <a href="?model=#(s)&language=#(C.get('language'))" #if(cmodel == s) style="color: red" #end>
                                #(s)
                            </a>
                        </li>
                        #end
                    </ul>
                    <br/>
                    #end
                </div>
                
                <div class="col-md-9 col-sm-12 right-list">
                    <nav class="breadcrumb">
                        <a class="breadcrumb-item" href="/index_ch">首页</a>
                        <a class="breadcrumb-item" href="javascript:;">适航指令</a>
                        <span class="breadcrumb-item active">
                            
                        #if(C.get('model'))
                         #(C.get('model'))
                        #end
                        </span>
                    </nav>
                    #include("airworthiness_search.html")
                     #airworthinessList(pageSize=10)
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <th>CAD编号</th>
                                <th>修正案号</th>
                                <th>标题</th>
                                #--<th>颁发单位</th>--#
                                #--<th>参考文件</th>--#
                                <th>生效日期</th>
                            </tr>
                        </thead>
                        <tbody>
                            
                            #for(entity:airworthinessList.list)
                            <tr>
                                <td>#(entity.cad_no)</td>
                                <td>#(entity.cad_amendment_no)</td>
                                <td><a href="#if(entity.reference_documents ??) #(entity.reference_documents) #else # #end" target="_blank">#(entity.title)</a></td>
                                #--<td>#(entity.lssued_by)</td>--#
                                #--<td>
                                    #if(entity.reference_documents ??)
                                        <a href = "#(entity.reference_documents)" target="_blank">下载附件</a>
                                    #else
                                        无附件
                                    #end
                                </td>--#
                                <td>#date(entity.effective_date, "yyyy-MM-dd")</td>
                            </tr>
                            #end
                            
                            
                        </tbody>
                    </table>
                    
                
                    #airworthinessPaginate()
                    <nav aria-label="Page navigation example" class="mt-4">
                        <ul class="pagination justify-content-center ">
                            #for(page : pages)
                            <li class="page-item #(page.style ??)">
                                <a class="page-link" href="#(page.url ??)">
                                    #(page.text ??)
                                </a>
                            </li>
                            #end
                        </ul>
                    </nav>
                    #end
                     
                    #end
                    <!--<nav aria-label="Page navigation">
                        <ul class="pagination justify-content-center pagination-sm">
                            <li class="page-item disabled">
                                <a class="page-link" href="#" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                    <span class="sr-only">上一页</span>
                                </a>
                            </li>
                            <li class="page-item active"><a class="page-link" href="#">1</a></li>
                            <li class="page-item"><a class="page-link" href="#">2</a></li>
                            <li class="page-item">
                                <a class="page-link" href="#" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                    <span class="sr-only">下一页</span>
                                </a>
                            </li>
                        </ul>
                    </nav>-->
                </div>
            </div>
        </div>
    </div>
    #include("bottom.html")
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    
    </script>
</body>

</html>